/*
 * Diagrama_Desktop.java
 *
 * Created on 20 de Maio de 2007, 23:58
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.jerm.Interface;
import java.awt.Dimension;
import javax.swing.*;

import org.jerm.Interface.JGraph_Diagrama.Diagrama_JGraph;
import org.jerm.Interface.JGraph_Diagrama.MyGraph;
import org.jgraph.JGraph;

/**
 *
 * @author Tiago Falcao
 */
public class Diagrama_Desktop extends JSplitPane
{
    private Diagrama_JGraph Diagrama_JGraph;
    private JScrollPane Configure_Panel;
    private Principal Principal;
    
    /** Creates a new instance of Diagrama_Desktop */
    public Diagrama_Desktop (Principal Principal)
    {
        super(JSplitPane.HORIZONTAL_SPLIT);
        
        this.Diagrama_JGraph=new Diagrama_JGraph(Principal);
        //this.Configure_Panel=this.Diagrama_JGraph.getConfiguracao();
        
        setResizeWeight(1.0);
        
        setOneTouchExpandable(true);
        setContinuousLayout(true);
        
        setLeftComponent (Diagrama_JGraph);
        setRightComponent (Diagrama_JGraph.Configure_Panel);
        
        resetToPreferredSizes ();
    }
    
    public JToolBar getToolBar(){
        return Diagrama_JGraph.getToolBar();
    }
    
    public MyGraph getGraph(){
        return Diagrama_JGraph.getGraph();
    }
    
}
